#ifndef LOGREG_H
#define LOGREG_H

#include <QWidget>
#include <QSqlDatabase>
#include <QCryptographicHash>
#include <QSqlQuery>
#include <QMessageBox>
#include "database.h"
#include "reg.h"
namespace Ui {
class LogReg;
}

class LogReg : public QWidget
{
    Q_OBJECT

public:
    explicit LogReg(QWidget *parent = nullptr);
    ~LogReg();

    bool get_log_flag();

signals:
    void show_main();

private slots:
    void on_pushButton_log_clicked();

    void on_pushButton_reg_clicked();

    void on_checkBox_stateChanged(int arg1);

private:
    Ui::LogReg *ui;
    QSqlDatabase db;
    bool log_flag;
    Reg *reg;

};

#endif // LOGREG_H
